package com.mytijian.code.dao;

import com.mytijian.code.dao.dataobject.MerchantOrderInfoDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by shjh on 2017/9/18.
 */
@Mapper
public interface MerchantOrderInfoDAO {
    MerchantOrderInfoDO selectByOuterId(String outerId);
    int insert(MerchantOrderInfoDO tmOrderDO);

    int updateTmOrder(@Param("tmOrderDO") MerchantOrderInfoDO tmOrderDO, @Param("oldStatus") Integer oldStatus);

    List<MerchantOrderInfoDO> selectNeedSendCodeOrders(@Param("time") String time);
}
